#include <stdio.h>
int main(void)
{
    int n;
    int c_even = 0;
    float sum_even = 0.0;
    int c_odd = 0;
    float sum_odd = 0.0;

    while ((scanf("%d", &n)) == 1 && n != 0)
    {
        if ((n % 2) == 0)
        {
            c_even++;
            sum_even += n;
        }
        else 
        {
            c_odd++;
            sum_odd += n;
        }
    }
    printf("偶数共有%d个，偶数平均值为%.3f\n", c_even, sum_even / c_even);
    printf("奇数共有%d个，奇数平均值为%.3f\n", c_odd, sum_odd / c_odd);

    return 0;
}